home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / patches / ami301c.zip / QKHOUSE.SM$ / QKHOUSE.SMM
INI File  |  1993-06-01  |  22KB  |  1,916 lines

  1. [ver]
  2.     4
  3. [sty]
  4.     
  5. [files]
  6. [charset]
  7.     82
  8.     ANSI (Windows, IBM CP 1252)
  9. [revisions]
  10.     0
  11. [prn]
  12.     QMS-PS 810
  13. [port]
  14.     LPT1:
  15. [lang]
  16.     1
  17. [desc]
  18.     Calculate monthly mortgage payment and total cost of a house.
  19.     
  20.     
  21.     
  22.     
  23.     738974909
  24.     32
  25.     732570070
  26.     793
  27.     8
  28.     0
  29.     0
  30.     0
  31.     0
  32.     
  33.     
  34.     
  35.     
  36.     
  37.     
  38.     1
  39. [fopts]
  40.     0
  41.     1
  42.     0
  43.     0
  44. [lnopts]
  45.     2
  46.     Body Text
  47.     1
  48. [docopts]
  49.     5
  50.     2
  51. [GramStyle]
  52.     
  53. [ParaNum]
  54.     1
  55. [tag]
  56.     Body Text
  57.     2
  58.     [fnt]
  59.         Arial
  60.         200
  61.         0
  62.         16384
  63.     [algn]
  64.         1
  65.         1
  66.         0
  67.         0
  68.         0
  69.     [spc]
  70.         33
  71.         273
  72.         1
  73.         0
  74.         0
  75.         1
  76.         100
  77.     [brk]
  78.         4
  79.     [line]
  80.         8
  81.         0
  82.         1
  83.         0
  84.         1
  85.         1
  86.         1
  87.         10
  88.         10
  89.         1
  90.     [spec]
  91.         0
  92.         2
  93.         
  94.         0
  95.         1
  96.         1
  97.         0
  98.         0
  99.         0
  100.         0
  101.     [nfmt]
  102.         280
  103.         1
  104.         2
  105.         .
  106.         ,
  107.         $
  108.     Body Text
  109.     0
  110.     0
  111. [tag]
  112.     Body Single
  113.     3
  114.     [fnt]
  115.         Times New Roman
  116.         240
  117.         0
  118.         49152
  119.     [algn]
  120.         1
  121.         1
  122.         0
  123.         0
  124.         0
  125.     [spc]
  126.         33
  127.         273
  128.         1
  129.         0
  130.         0
  131.         1
  132.         100
  133.     [brk]
  134.         4
  135.     [line]
  136.         8
  137.         0
  138.         1
  139.         0
  140.         1
  141.         1
  142.         1
  143.         10
  144.         10
  145.         1
  146.     [spec]
  147.         0
  148.         0
  149.         
  150.         0
  151.         1
  152.         1
  153.         0
  154.         0
  155.         0
  156.         0
  157.     [nfmt]
  158.         280
  159.         1
  160.         2
  161.         .
  162.         ,
  163.         $
  164.     Body Single
  165.     0
  166.     0
  167. [tag]
  168.     Bullet
  169.     4
  170.     [fnt]
  171.         Times New Roman
  172.         240
  173.         0
  174.         49152
  175.     [algn]
  176.         1
  177.         1
  178.         0
  179.         288
  180.         288
  181.     [spc]
  182.         33
  183.         273
  184.         1
  185.         0
  186.         0
  187.         1
  188.         100
  189.     [brk]
  190.         4
  191.     [line]
  192.         8
  193.         0
  194.         1
  195.         0
  196.         1
  197.         1
  198.         1
  199.         10
  200.         10
  201.         1
  202.     [spec]
  203.         0
  204.         0
  205.         <*0>
  206.         360
  207.         1
  208.         1
  209.         0
  210.         0
  211.         0
  212.         0
  213.     [nfmt]
  214.         272
  215.         1
  216.         2
  217.         .
  218.         ,
  219.         $
  220.     Bullet
  221.     0
  222.     0
  223. [tag]
  224.     Bullet 1
  225.     5
  226.     [fnt]
  227.         Times New Roman
  228.         240
  229.         0
  230.         49152
  231.     [algn]
  232.         1
  233.         1
  234.         288
  235.         288
  236.         288
  237.     [spc]
  238.         33
  239.         273
  240.         1
  241.         0
  242.         0
  243.         1
  244.         100
  245.     [brk]
  246.         4
  247.     [line]
  248.         8
  249.         0
  250.         1
  251.         0
  252.         1
  253.         1
  254.         1
  255.         10
  256.         10
  257.         1
  258.     [spec]
  259.         0
  260.         0
  261.         <*5>
  262.         0
  263.         1
  264.         1
  265.         0
  266.         0
  267.         0
  268.         0
  269.     [nfmt]
  270.         280
  271.         1
  272.         2
  273.         .
  274.         ,
  275.         $
  276.     Bullet 1
  277.     0
  278.     0
  279. [tag]
  280.     Number List
  281.     6
  282.     [fnt]
  283.         Times New Roman
  284.         240
  285.         0
  286.         49152
  287.     [algn]
  288.         1
  289.         1
  290.         360
  291.         360
  292.         360
  293.     [spc]
  294.         33
  295.         273
  296.         1
  297.         0
  298.         0
  299.         1
  300.         100
  301.     [brk]
  302.         4
  303.     [line]
  304.         8
  305.         0
  306.         1
  307.         0
  308.         1
  309.         1
  310.         1
  311.         10
  312.         10
  313.         1
  314.     [spec]
  315.         0
  316.         0
  317.         <*:>.
  318.         360
  319.         1
  320.         1
  321.         0
  322.         16
  323.         0
  324.         0
  325.     [nfmt]
  326.         272
  327.         1
  328.         2
  329.         .
  330.         ,
  331.         $
  332.     Number List
  333.     0
  334.     0
  335. [tag]
  336.     Subhead
  337.     7
  338.     [fnt]
  339.         Times New Roman
  340.         240
  341.         0
  342.         49155
  343.     [algn]
  344.         1
  345.         1
  346.         0
  347.         0
  348.         0
  349.     [spc]
  350.         33
  351.         273
  352.         1
  353.         72
  354.         72
  355.         1
  356.         100
  357.     [brk]
  358.         4
  359.     [line]
  360.         8
  361.         0
  362.         1
  363.         0
  364.         1
  365.         1
  366.         1
  367.         10
  368.         10
  369.         1
  370.     [spec]
  371.         0
  372.         1
  373.         
  374.         0
  375.         1
  376.         1
  377.         0
  378.         0
  379.         0
  380.         0
  381.     [nfmt]
  382.         272
  383.         1
  384.         2
  385.         .
  386.         ,
  387.         $
  388.     Subhead
  389.     0
  390.     0
  391. [tag]
  392.     Title
  393.     8
  394.     [fnt]
  395.         Arial
  396.         360
  397.         0
  398.         16385
  399.     [algn]
  400.         4
  401.         1
  402.         0
  403.         0
  404.         0
  405.     [spc]
  406.         33
  407.         446
  408.         1
  409.         144
  410.         72
  411.         1
  412.         100
  413.     [brk]
  414.         16
  415.     [line]
  416.         8
  417.         0
  418.         1
  419.         0
  420.         1
  421.         1
  422.         1
  423.         10
  424.         10
  425.         1
  426.     [spec]
  427.         0
  428.         0
  429.         
  430.         0
  431.         1
  432.         1
  433.         0
  434.         0
  435.         0
  436.         0
  437.     [nfmt]
  438.         272
  439.         1
  440.         2
  441.         .
  442.         ,
  443.         $
  444.     Title
  445.     0
  446.     0
  447. [tag]
  448.     Header
  449.     9
  450.     [fnt]
  451.         Times New Roman
  452.         240
  453.         0
  454.         49152
  455.     [algn]
  456.         1
  457.         1
  458.         0
  459.         0
  460.         0
  461.     [spc]
  462.         33
  463.         273
  464.         1
  465.         0
  466.         0
  467.         1
  468.         100
  469.     [brk]
  470.         4
  471.     [line]
  472.         8
  473.         0
  474.         1
  475.         0
  476.         1
  477.         1
  478.         1
  479.         10
  480.         10
  481.         1
  482.     [spec]
  483.         0
  484.         0
  485.         
  486.         0
  487.         1
  488.         1
  489.         0
  490.         0
  491.         0
  492.         0
  493.     [nfmt]
  494.         280
  495.         1
  496.         2
  497.         .
  498.         ,
  499.         $
  500.     Header
  501.     0
  502.     0
  503. [tag]
  504.     Footer
  505.     11
  506.     [fnt]
  507.         Times New Roman
  508.         240
  509.         0
  510.         49152
  511.     [algn]
  512.         1
  513.         1
  514.         0
  515.         0
  516.         0
  517.     [spc]
  518.         33
  519.         273
  520.         1
  521.         0
  522.         0
  523.         1
  524.         100
  525.     [brk]
  526.         4
  527.     [line]
  528.         8
  529.         0
  530.         1
  531.         0
  532.         1
  533.         1
  534.         1
  535.         10
  536.         10
  537.         1
  538.     [spec]
  539.         0
  540.         0
  541.         
  542.         0
  543.         1
  544.         1
  545.         0
  546.         0
  547.         0
  548.         0
  549.     [nfmt]
  550.         280
  551.         1
  552.         2
  553.         .
  554.         ,
  555.         $
  556.     Footer
  557.     0
  558.     0
  559. [lay]
  560.     Standard
  561.     513
  562.     [rght]
  563.         15840
  564.         12240
  565.         1
  566.         576
  567.         1440
  568.         1
  569.         1440
  570.         504
  571.         0
  572.         1
  573.         0
  574.         1
  575.         0
  576.         2
  577.         1
  578.         576
  579.         11736
  580.         12
  581.         1
  582.         720
  583.         1
  584.         1440
  585.         1
  586.         2160
  587.         1
  588.         2880
  589.         1
  590.         3600
  591.         1
  592.         4320
  593.         1
  594.         5040
  595.         1
  596.         5760
  597.         1
  598.         6480
  599.         1
  600.         7200
  601.         1
  602.         7920
  603.         1
  604.         8640
  605.     [hrght]
  606.     [lyfrm]
  607.         1
  608.         11200
  609.         0
  610.         0
  611.         12240
  612.         1440
  613.         0
  614.         1
  615.         3
  616.         1 0 0 0 0 0 0
  617.         0
  618.         0
  619.         1
  620.     [frmlay]
  621.         1440
  622.         12240
  623.         1
  624.         1440
  625.         72
  626.         1
  627.         792
  628.         1440
  629.         0
  630.         1
  631.         0
  632.         1
  633.         1
  634.         0
  635.         1
  636.         1440
  637.         10800
  638.         2
  639.         2
  640.         4680
  641.         3
  642.         9360
  643.     [txt]
  644. Peyton McMansu
  645.  
  646. Lotus WPD
  647.  
  648. >
  649.     [frght]
  650.     [lyfrm]
  651.         1
  652.         13248
  653.         0
  654.         14400
  655.         12240
  656.         15840
  657.         0
  658.         1
  659.         3
  660.         1 0 0 0 0 0 0
  661.         0
  662.         0
  663.         2
  664.     [frmlay]
  665.         15840
  666.         12240
  667.         1
  668.         1440
  669.         792
  670.         1
  671.         14472
  672.         1440
  673.         0
  674.         1
  675.         0
  676.         1
  677.         1
  678.         0
  679.         1
  680.         1440
  681.         10800
  682.         2
  683.         2
  684.         4680
  685.         3
  686.         9360
  687.     [txt]
  688. >
  689. [elay]
  690. [l1]
  691.     0
  692. [edoc]
  693. @Outline2@
  694. @Subhead@' Defines
  695.  
  696. @Outline2@Define  NumDec    2
  697.  
  698. Define    Formula    "@PMT({Price},{Interest}/12,{Years}*12)"
  699.  
  700. Define    ErrorMessage    "The ltsce01.dll could not be loaded.  Please copy the dll to the Ami Pro directory."
  701.  
  702.  
  703. Define    GetPrefix()    GetGlobalVar$("Prefix")
  704.  
  705. Define    GetSuffix()    GetGlobalVar$("Suffix")
  706.  
  707.  
  708.  
  709. Declare    FontDlg(Action, Hdlg, id)
  710.  
  711. Declare    CellEngine(action)
  712.  
  713. Declare    GetMarkValue(Bookmarkname)
  714.  
  715. Declare    StrPath(Filename)
  716.  
  717. Declare    GetFormats(Action)
  718.  
  719. Declare    Report()
  720.  
  721.  
  722.  
  723. Define    Descript    "Enter the following data to calculate the monthly and total mortgage payments."
  724.  
  725.  
  726. @Subhead@Function Main(Principal, Interest, Term)
  727.  
  728. DefStr hInstance;
  729.  
  730. Mac = GetRunningMacroFile$()
  731.  
  732. MacPath = StrPath(Mac)
  733.  
  734. FontDlg(1,0,0)
  735.  
  736. If 0 != CellEngine(1)
  737.  
  738. Else
  739.  
  740.     ' Engine did not start
  741.  
  742.     Message(ErrorMessage)
  743.  
  744.     Return -1
  745.  
  746. Endif
  747.  
  748. GetFormats(1)    ' International function
  749.  
  750.  
  751. SetDlgCallBack(0,"{Mac}!InitDlg")
  752.  
  753. @Outline3@DlgKeyInterrupt(112, "{mac}!DisplayHelp")
  754.  
  755. @Outline3@
  756. FillEdit(1001, Descript)
  757.  
  758. Bitmap = "{Macpath}qkhouse.bmt"
  759.  
  760. FillEdit(1003,Bitmap)
  761.  
  762.  
  763. If GetOpenFileCount() <;> 0
  764.  
  765. If GetBookMarkCount() <;> 0    
  766.  
  767.     ' If these bookmarks are present in the open doc, use the values in the mark
  768.  
  769.     FillEdit(8000,GetMarkValue("Principal"))
  770.  
  771.     FillEdit(8001,GetMarkValue("Term"))
  772.  
  773.     FillEdit(8002,GetMarkValue("Interest"))
  774.  
  775. Endif
  776.  
  777. <+@>Endif
  778.  
  779. <+@>
  780.  
  781. SetDlgCallBack(8000,"{Mac}!DataChange")
  782.  
  783. SetDlgCallBack(8001,"{Mac}!DataChange")
  784.  
  785. SetDlgCallBack(8002,"{Mac}!DataChange")
  786.  
  787. SetDlgCallBack(21,"{Mac}!DataChange")
  788.  
  789.  
  790.  
  791. Box = DialogBox(".","Deprec")
  792.  
  793. MontlyPayment = GetDialogField$(8010)
  794.  
  795. ' NEW STUFF 4-27 MLO - 
  796.  
  797. IF box = 3
  798.  
  799.     Report()    'function to blow stuff into _Mortgage.sty
  800.  
  801. Endif
  802.  
  803.  
  804.  
  805.  
  806. FontDlg(4,0,0)        ' Destroy the font
  807.  
  808. CellEngine(0)        ' Shut down the engine
  809.  
  810. GetFormats(0)        ' Free the international stuff
  811.  
  812.  
  813.  
  814.  
  815. End function
  816.  
  817.  
  818.  
  819. @Subhead@Function DataChange(Hdlg, id, value)
  820.  
  821. IgnoreKeyBoard(2)
  822.  
  823. DefStr Allowance;
  824.  
  825. Price = GetDlgItemText(hDlg, 8000)*1
  826.  
  827. Years = GetDlgItemText(hDlg, 8001)*1
  828.  
  829. Interest = (GetDlgItemText(Hdlg, 8002)) / 100
  830.  
  831. Answer = CellEngine(Formula)      
  832.  
  833. NumMonths = 12 * Years
  834.  
  835. Total = FormatNum$(GetPrefix(),GetSuffix(),NumDec,NumMonths * Answer)
  836.  
  837. Answer = FormatNum$(GetPrefix(),GetSuffix(),NumDec,Answer)
  838.  
  839. SetDlgItemText(hDlg, 8010, Answer)
  840.  
  841. SetDlgItemText(hDlg, 8011, Total)
  842.  
  843. End Function
  844.  
  845.  
  846. @Subhead@Function InitDlg(hDlg, id, value)
  847.  
  848. ' use the fontdlg function to display the following control with a small font
  849.  
  850. IgnoreKeyBoard(2)
  851.  
  852. HourGlass(on)
  853.  
  854. FontDlg(3,Hdlg, 1000)
  855.  
  856. FontDlg(3, Hdlg, 1001)
  857.  
  858. FontDlg(3, Hdlg, 1004)
  859.  
  860. FontDlg(3, Hdlg, 1005)
  861.  
  862. FontDlg(3, Hdlg, 1006)
  863.  
  864. FontDlg(3, Hdlg, 8000)
  865.  
  866. FontDlg(3, Hdlg, 8001)
  867.  
  868. FontDlg(3, Hdlg, 8002)
  869.  
  870. FontDlg(3, Hdlg, 21)
  871.  
  872. FontDlg(3, Hdlg, 1007)
  873.  
  874. FontDlg(3, Hdlg, 1008)
  875.  
  876. FontDlg(3, Hdlg, 8010)
  877.  
  878. FontDlg(3, Hdlg, 8011)
  879.  
  880. HourGlass(off)
  881.  
  882.  
  883. End Function
  884.  
  885.  
  886.  
  887.  
  888. @Subhead@function DisplayHelp()
  889.  
  890. @Outline2@' two defines needed for help.  The help name and panel number are defined above
  891.  
  892. @Outline2@define FindWindowa() DllCall("user,FindWindow,HCC", %1, %2)
  893.  
  894. @Outline2@define WinHelpa(hWnd, file, cmd, ptr)    DllCall("user,WinHelp,HHCHJ", %1, %2, %3, %4)
  895.  
  896. @Outline2@prohWnd = FindWindowa("AmiProWndA", 0)
  897.  
  898. @Outline2@helpfile = strcat$(GetAmiDirectory$(), "HelpPack.hlp")
  899.  
  900. @Outline2@PanelNum= 25 
  901.  
  902. @Outline2@WinHelpa(prohWnd, helpfile, 0x0001, Panelnum)
  903.  
  904. @Outline2@end function
  905.  
  906. @Subhead@
  907.  
  908.  
  909.  
  910.  
  911.  
  912. @Subhead@function strpath(filename)
  913.  
  914. defstr char;
  915.  
  916. Length = len(FileName)
  917.  
  918. WHILE "\" != Assign(&Char, MID$(FileName, Length, 1))
  919.  
  920.     Length = Length - 1
  921.  
  922. WEND
  923.  
  924. InFileName = Right$(FileName, (len(FileName) - Length))
  925.  
  926. InDir = Left$(FileName, Length - 1) 
  927.  
  928. if right$(indir, 1) <<<;> "\"
  929.  
  930.     indir = strcat$(indir, "\")
  931.  
  932. endif
  933.  
  934. return indir
  935.  
  936. end function
  937.  
  938.  
  939.  
  940. @Subhead@<:f,BArial,>Function GetFormats<:f><:f,BArial,>(Action)
  941.  
  942. <:f,BArial,>iCurrency = GetProfileString$("Intl","iCurrency","Win.ini")
  943.  
  944. currency = GetProfileString$("Intl","sCurrency","Win.ini")
  945.  
  946. <:f,BArial,>AllocGlobalVar("Prefix",1)
  947.  
  948. <:f,BArial,>AllocGlobalVar("Suffix",1)<:f>
  949.  
  950. <:f,BArial,>
  951.  
  952. <:f,BArial,>Switch Action
  953.  
  954. <:f,BArial,>    Case 1     ' turn this on
  955.  
  956. <:f,BArial,>        Switch iCurrency
  957.  
  958. <:f,BArial,>            Case 0
  959.  
  960. <:f,BArial,>                Prefix = Currency<:f>
  961.  
  962. <:f,BArial,>                Suffix = ""
  963.  
  964. <:f,BArial,>            Case 1
  965.  
  966. <:f,BArial,>                Prefix = ""
  967.  
  968. <:f,BArial,>                Suffix = Currency<:f>
  969.  
  970. <:f,BArial,>            Case 2
  971.  
  972. <:f,BArial,>                Prefix = StrCat$(Currency," ")
  973.  
  974. <:f,BArial,>                Suffix = ""
  975.  
  976.         <:f,BArial,>    Case 3
  977.  
  978. <:f,BArial,>                Prefix = ""
  979.  
  980. <:f,BArial,>                Suffix = StrCat$(" ",Currency)
  981.  
  982. <:f,BArial,>        endSwitch
  983.  
  984. <:f,BArial,>        SetGlobalVar("Suffix",Suffix)
  985.  
  986. <:f,BArial,>        SetGlobalVar("Prefix",Prefix)
  987.  
  988. <:f,BArial,>
  989.  
  990. <:f,BArial,>    Case 0    ' free globals
  991.  
  992. <:f,BArial,>        FreeGlobalVar("Suffix")
  993.  
  994. <:f,BArial,>        FreeGlobalVar("Prefix")
  995.  
  996. <:f,BArial,>        
  997.  
  998. <:f,BArial,>EndSwitch
  999.  
  1000. <:f,BArial,>End Function
  1001.  
  1002.  
  1003.  
  1004.  
  1005.  
  1006.  
  1007. <:p<* >>
  1008.  
  1009. @Subhead@<:f,BArial,>
  1010.  
  1011. @Subhead@<:f,BArial,>
  1012.  
  1013. @Subhead@Function CellEngine(Action)
  1014.  
  1015. 'Available Actions
  1016.  
  1017. '    1         Start the engine and allocate globalvar
  1018.  
  1019. '    2        Return the handle to the instance of the sheet
  1020.  
  1021. '    0        Shut everything down
  1022.  
  1023. '    Default    Expect a formula and return an answer
  1024.  
  1025.  
  1026. ' these defines may be useful at the beginning of your macro
  1027.  
  1028. Define StartEngine    1
  1029.  
  1030. Define GetInstance    2
  1031.  
  1032. Define CloseEngine    0
  1033.  
  1034.  
  1035. Define    CECREATEINSTANCE(LPHANDLE)    DllCall("LTSCE01.DLL,CECREATEINSTANCE,HO",%1)
  1036.  
  1037. Define    CEDESTROYINSTANCE(HANDLE)    DllCall("LTSCE01.DLL,CEDESTROYINSTANCE,HH",%1)
  1038.  
  1039. Define    CECALCNOW(HINSTANCE, lpFormula, lpOutPut)    DllCall("LTSCE01.DLL,CECALCNOW,HHCC",%1,%2,%3)
  1040.  
  1041.  
  1042. DefStr hInstance, Answer, Var;
  1043.  
  1044. Mac = GetRunningMacroFile$()
  1045.  
  1046. GlobalInstance = StrCat$(Mac,"hIstance")
  1047.  
  1048. AmiDir = GetAmiDirectory$()
  1049.  
  1050.  
  1051. Switch Action
  1052.  
  1053.     Case 1
  1054.  
  1055.         ' start the engine
  1056.  
  1057.         LibId = DLLLoadLib("{AmiDir}LTSCE01.DLL","CECreateInstance","HO")
  1058.  
  1059.         If LibId = 0
  1060.  
  1061.             Message("LTSCE01.DLL not found.  Copy the dll to your windows directory")    
  1062.  
  1063.             Return -1;
  1064.  
  1065.         Endif
  1066.  
  1067.         RetVal = CECREATEINSTANCE(&hInstance)
  1068.  
  1069.         AllocGlobalVar("{GlobalInstance}",1)
  1070.  
  1071.         AllocGlobalVar("{Mac}LibId",1)
  1072.  
  1073.         SetGlobalVar("{Mac}Libid",LibId)
  1074.  
  1075.         SetGlobalVar("{GlobalInstance}",hInstance)
  1076.  
  1077.         Return hInstance;
  1078.  
  1079.         Break;
  1080.  
  1081.  
  1082.     Case 2
  1083.  
  1084.         ' return the handle to the instance of the sheet
  1085.  
  1086.         AllocGlobalVar("{GlobalInstance}",1)
  1087.  
  1088.         hInstance = GetGlobalVar$("{GlobalInstance}")
  1089.  
  1090.         Return hInstance;
  1091.  
  1092.         Break;
  1093.  
  1094.  
  1095.     Case 0
  1096.  
  1097.         ' destroy the instance of the sheet and free the global var and libid
  1098.  
  1099.         AllocGlobalVar("{GlobalInstance}",1)
  1100.  
  1101.         AllocGlobalVar("{Mac}LibId",1)
  1102.  
  1103.         hInstance = GetGlobalVar$("{GlobalInstance}")
  1104.  
  1105.         LibId = GetGlobalVar$("{Mac}LibId")
  1106.  
  1107.         If hInstance
  1108.  
  1109.             CEDestroyInstance(hInstance)
  1110.  
  1111.             DllFreeLib(Libid)
  1112.  
  1113.         Endif
  1114.  
  1115.         FreeGlobalVar("{GlobalInstance}")
  1116.  
  1117.         FreeGlobalVar("{Mac}LibId")
  1118.  
  1119.         Break;
  1120.  
  1121.  
  1122.     Default
  1123.  
  1124.         ' Calculate the formula and return the answer
  1125.  
  1126.             AllocGlobalVar("{GlobalInstance}",1)
  1127.  
  1128.             hInstance = GetGlobalVar$("{GlobalInstance}")
  1129.  
  1130.             CECalcNow(hInstance,"{Action}",&Answer)
  1131.  
  1132.             Return Answer;
  1133.  
  1134.         Break;
  1135.  
  1136. EndSwitch
  1137.  
  1138. End Function
  1139.  
  1140. @Subhead@
  1141.  
  1142.  
  1143.  
  1144.  
  1145. @Subhead@Function FontDlg(Action, Hdlg, id)
  1146.  
  1147. ' 1    Create a font and allocvar
  1148.  
  1149. ' 2    Return the handle of the create font 
  1150.  
  1151. ' 3    Set the id specified to the font
  1152.  
  1153. ' 4    Freeglobalvar and delete created object
  1154.  
  1155.  
  1156. @Outline2@define    CreateFontDLG()        DllCall("gdi,CreateFont,HHHHHHHHHHHHHHC", %1, %2, %3, %4, %5, %6, %7, %8, %9, %10, %11, %12, %13, %14)
  1157.  
  1158. @Outline2@define    DeleteObjectDLG(handle)    DllCall("gdi,DeleteObject,HH", %1)
  1159.  
  1160. @Outline2@define    SendMessageDLG(hwnd, msg, wpara, lparm)    DllCall("user,SendMessage,HHHHJ", %1, %2, %3, %4)
  1161.  
  1162. @Outline2@
  1163. @Outline2@
  1164. Switch Action
  1165.  
  1166.     Case 1    ' Create the font and store it
  1167.  
  1168. @Outline2@        Font = CreateFontDLG(13, 0, 0, 0, 400, 0, 0, 0, 0, 0, 0, 0, 32, "Helv")
  1169.  
  1170.         AllocGlobalVar("FontHandle",1)
  1171.  
  1172.         If Font
  1173.  
  1174.             SetGlobalVar("FontHandle",Font)
  1175.  
  1176.             Return Font
  1177.  
  1178.         Else
  1179.  
  1180.             Return 0;    ' no font
  1181.  
  1182.         Endif
  1183.  
  1184.         Break;
  1185.  
  1186.     Case 2    ' Return the handle to the font
  1187.  
  1188.         Handle = GetGlobalVar$("FontHandle")
  1189.  
  1190.         If Handle 
  1191.  
  1192.             Return Handle
  1193.  
  1194.         Else
  1195.  
  1196.             Return 0
  1197.  
  1198.         Endif
  1199.  
  1200.  
  1201.     Case 3    ' Set the id to the font
  1202.  
  1203.         Handle = GetGlobalVar$("FontHandle")
  1204.  
  1205.         If Handle 
  1206.  
  1207.             IdControl = GetDlgITem(Hdlg, id)
  1208.  
  1209.             SendMessageDlg(idControl, 0x30, Handle, 0)
  1210.  
  1211.             Return 1
  1212.  
  1213.         Else
  1214.  
  1215.             Return 0
  1216.  
  1217.         Endif
  1218.  
  1219.         Break;        
  1220.  
  1221.         
  1222.  
  1223.     Case 4    ' Delete the font and clear the var
  1224.  
  1225.         Handle = GetGlobalVar$("FontHandle")
  1226.  
  1227.         If Handle
  1228.  
  1229.             DeleteObjectDLG(Handle)
  1230.  
  1231.             Stat = 1    
  1232.  
  1233.         Else
  1234.  
  1235.             Stat = 0
  1236.  
  1237.         Endif
  1238.  
  1239.         FreeGlobalVar("FontHandle")
  1240.  
  1241.         Return Stat        
  1242.  
  1243.     Default
  1244.  
  1245.         Message("Fontdlg received an invalid parameter {Action}")
  1246.  
  1247. EndSwitch    
  1248.  
  1249.  
  1250. End Function
  1251.  
  1252.  
  1253.  
  1254.  
  1255. @Subhead@Function GetMarkValue(Name)
  1256.  
  1257. ' This retrieves a value from the bookmark name and returns the value
  1258.  
  1259. ' If the bookmark does not exit, a "" is returned
  1260.  
  1261. If Name = ""
  1262.  
  1263.     Return Name
  1264.  
  1265. Endif
  1266.  
  1267. Exist = EvalField("If Defined {Name} {Name} Else 0")
  1268.  
  1269. If Exist
  1270.  
  1271.     Value= EvalField("{Name}")
  1272.  
  1273.     If -1 != Strchr(1,Value, "<;>")
  1274.  
  1275.         If -1 = Assign(&Value, StrField$(Value, 2, "<;>"))    
  1276.  
  1277.         Endif
  1278.  
  1279.     Endif
  1280.  
  1281. Else
  1282.  
  1283.     Value = ""
  1284.  
  1285. Endif
  1286.  
  1287. Return Value;
  1288.  
  1289. End Function
  1290.  
  1291.  
  1292.  
  1293.  
  1294.  
  1295.  
  1296.  
  1297.  
  1298.  
  1299.  
  1300.  
  1301.  
  1302.  
  1303.  
  1304. <:f240,2Times New Roman,0,0,0><+"><+!>Function Report()<-"><:f><-!>    'added by mlo
  1305.  
  1306.  
  1307. Years = GetDialogField$(8001) * 1
  1308.  
  1309. MortgagePrice = GetDialogField$(8000) * 1
  1310.  
  1311. InterestRate = GetDialogField$(8002)
  1312.  
  1313. MonthlyPayment = GetDialogField$(8010) * 1
  1314.  
  1315. 'MonthlyPayment = FormatNum$("","",2,MonthlyPayment)           'strip off the dollar sign for the table
  1316.  
  1317.  
  1318. New("_Mortgag.sty",1,0)
  1319.  
  1320.  
  1321. MarkBookMark("Years",4002)
  1322.  
  1323. Type(Years)
  1324.  
  1325.  
  1326.  
  1327. MarkBookMark("MA",4002)
  1328.  
  1329. type(MortgagePrice)
  1330.  
  1331.  
  1332. MarkBookMark("IR",4002)
  1333.  
  1334. type(InterestRate)
  1335.  
  1336.  
  1337. MarkBookMark("PMT",4002)
  1338.  
  1339. type(MonthlyPayment)
  1340.  
  1341. type("<[>DOWN]")                        'get out of the table cell so that it will be added to the total
  1342.  
  1343.  
  1344. End Function
  1345.  
  1346.  
  1347.  
  1348.  
  1349.  
  1350.  
  1351.  
  1352. DIALOG    Deprec
  1353.  
  1354. -2134376448    16    58    30    165    107    ""    "AmiDialog"    "Calculate Mortgage Payment"
  1355.  
  1356. FONT    8    "Helv"
  1357.  
  1358. 56    27    38    12    8000    1350631424    "edit"    ""    0 
  1359.  
  1360. 56    41    38    12    8001    1350631424    "edit"    ""    0 
  1361.  
  1362. 56    55    30    12    8002    1350631424    "edit"    ""    0 
  1363.  
  1364. 120    5    40    14    1    1342373889    "button"    "Done"    0 
  1365.  
  1366. 38    80    44    8    8010    1342177282    "static"    ""    0 
  1367.  
  1368. 5    30    49    8    1004    1342177280    "static"    "Mortgage amount:"    0 
  1369.  
  1370. 5    44    48    8    1005    1342177280    "static"    "Number of years:"    0 
  1371.  
  1372. 5    58    40    8    1006    1342177280    "static"    "Interest rate:"    0 
  1373.  
  1374. 5    5    111    21    1001    1342177280    "static"    ""    0 
  1375.  
  1376. 5    69    82    33    20    1342308359    "button"    "Payments"    0 
  1377.  
  1378. 88    57    6    10    1000    1342177280    "static"    "%"    0 
  1379.  
  1380. 100    46    55    49    1003    1342177290    "static"    "filename.bmt"    0 
  1381.  
  1382. 38    91    44    8    8011    1342177282    "static"    ""    0 
  1383.  
  1384. 7    80    22    10    1007    1342177280    "static"    "Monthly:"    0 
  1385.  
  1386. 7    91    22    10    1008    1342177280    "static"    "Total:"    0 
  1387.  
  1388. 120    21    40    14    3    1342373888    "button"    "Report"    0 
  1389.  
  1390. END DIALOG
  1391.  
  1392. >
  1393.  
  1394. [Embedded]
  1395. 00015552
  1396. >
  1397. [macsum] 11
  1398. Main 0 3 7 20
  1399. DataChange 905 3 8 73
  1400. InitDlg 1324 3 1 87
  1401. DisplayHelp 1697 0 4 110
  1402. strpath 1882 1 5 125
  1403. GetFormats 2203 1 5 140
  1404. CellEngine 2772 1 9 179
  1405. FontDlg 3696 3 5 251
  1406. GetMarkValue 4542 1 3 310
  1407. Report 4847 0 5 341
  1408. Deprec 5144 0 -1 372
  1409. [macse]
  1410. 14 Main
  1411. 0 802
  1412. 13
  1413. 8 5
  1414. 16 StrPath "{5}"
  1415. 13
  1416. 8 6
  1417. 16 FontDlg 1 0 0
  1418. 5 0
  1419. 16 CellEngine 1
  1420. 13
  1421. 18 1
  1422. 11 00000128
  1423. 10 00000232
  1424. 0 3 "The ltsce01.dll could not be loaded.  Please copy the dll to the Ami Pro directory."
  1425. 5 -1
  1426. 15
  1427. 9
  1428. 16 GetFormats 1
  1429. 0 41 0 "{5}!InitDlg"
  1430. 0 47 112 "{5}!DisplayHelp"
  1431. 0 31 1001 "Enter the following data to calculate the monthly and total mortgage payments."
  1432. 7 "{6}qkhouse.bmt"
  1433. 8 7
  1434. 0 31 1003 "{7}"
  1435. 0 1050
  1436. 13
  1437. 5 0
  1438. 18 3
  1439. 11 00000643
  1440. 0 1039
  1441. 13
  1442. 5 0
  1443. 18 3
  1444. 11 00000643
  1445. 16 GetMarkValue "Principal"
  1446. 13
  1447. 0 31 8000 [X]
  1448. 16 GetMarkValue "Term"
  1449. 13
  1450. 0 31 8001 [X]
  1451. 16 GetMarkValue "Interest"
  1452. 13
  1453. 0 31 8002 [X]
  1454. 0 41 8000 "{5}!DataChange"
  1455. 0 41 8001 "{5}!DataChange"
  1456. 0 41 8002 "{5}!DataChange"
  1457. 0 41 21 "{5}!DataChange"
  1458. 0 26 "." "Deprec"
  1459. 13
  1460. 8 8
  1461. 0 27 8010
  1462. 13
  1463. 8 9
  1464. 6 8
  1465. 5 3
  1466. 18 0
  1467. 11 00000841
  1468. 16 Report
  1469. 16 FontDlg 4 0 0
  1470. 16 CellEngine 0
  1471. 16 GetFormats 0
  1472. 6 3
  1473. 15
  1474. 9
  1475. 14 DataChange
  1476. 0 32 2
  1477. 0 42 "{0}" 8000
  1478. 13
  1479. 5 1
  1480. 4 0
  1481. 8 5
  1482. 0 42 "{0}" 8001
  1483. 13
  1484. 5 1
  1485. 4 0
  1486. 8 6
  1487. 0 42 "{0}" 8002
  1488. 13
  1489. 5 100
  1490. 4 1
  1491. 8 7
  1492. 16 CellEngine "@PMT({5},{7}/12,{6}*12)"
  1493. 13
  1494. 8 8
  1495. 5 12
  1496. 6 6
  1497. 4 0
  1498. 8 9
  1499. 0 265 "Prefix"
  1500. 13
  1501. 0 265 "Suffix"
  1502. 13
  1503. 6 9
  1504. 6 8
  1505. 4 0
  1506. 0 19 [X] [X] 2 [X]
  1507. 13
  1508. 8 10
  1509. 0 265 "Prefix"
  1510. 13
  1511. 0 265 "Suffix"
  1512. 13
  1513. 0 19 [X] [X] 2 "{8}"
  1514. 13
  1515. 8 8
  1516. 0 43 "{0}" 8010 "{8}"
  1517. 0 43 "{0}" 8011 "{10}"
  1518. 6 3
  1519. 15
  1520. 9
  1521. 14 InitDlg
  1522. 0 32 2
  1523. 0 296 1
  1524. 16 FontDlg 3 "{0}" 1000
  1525. 16 FontDlg 3 "{0}" 1001
  1526. 16 FontDlg 3 "{0}" 1004
  1527. 16 FontDlg 3 "{0}" 1005
  1528. 16 FontDlg 3 "{0}" 1006
  1529. 16 FontDlg 3 "{0}" 8000
  1530. 16 FontDlg 3 "{0}" 8001
  1531. 16 FontDlg 3 "{0}" 8002
  1532. 16 FontDlg 3 "{0}" 21
  1533. 16 FontDlg 3 "{0}" 1007
  1534. 16 FontDlg 3 "{0}" 1008
  1535. 16 FontDlg 3 "{0}" 8010
  1536. 16 FontDlg 3 "{0}" 8011
  1537. 0 296 0
  1538. 6 3
  1539. 15
  1540. 9
  1541. 14 DisplayHelp
  1542. 0 284 "user,FindWindow,HCC" "AmiProWndA" 0
  1543. 13
  1544. 8 1
  1545. 0 798
  1546. 13
  1547. 0 16 [X] "HelpPack.hlp"
  1548. 13
  1549. 8 2
  1550. 5 25
  1551. 8 3
  1552. 0 284 "user,WinHelp,HHCHJ" "{1}" "{2}" 1 "{3}"
  1553. 6 0
  1554. 15
  1555. 9
  1556. 14 strpath
  1557. 0 14 "{0}"
  1558. 13
  1559. 8 3
  1560. 7 "\"
  1561. 0 15 "{0}" "{3}" 1
  1562. 13
  1563. 0 805 &2 [X]
  1564. 13
  1565. 18 1
  1566. 11 00000134
  1567. 6 3
  1568. 5 1
  1569. 3 1
  1570. 8 3
  1571. 10 00000033
  1572. 0 14 "{0}"
  1573. 13
  1574. 6 3
  1575. 3 1
  1576. 0 807 "{0}" [X]
  1577. 13
  1578. 8 4
  1579. 6 3
  1580. 5 1
  1581. 3 1
  1582. 0 806 "{0}" [X]
  1583. 13
  1584. 8 5
  1585. 0 807 "{5}" 1
  1586. 13
  1587. 7 "\"
  1588. 18 1
  1589. 11 00000297
  1590. 0 16 "{5}" "\"
  1591. 13
  1592. 8 5
  1593. 6 5
  1594. 15
  1595. 9
  1596. 6 1
  1597. 15
  1598. 9
  1599. 14 GetFormats
  1600. 0 286 "Intl" "iCurrency" "Win.ini"
  1601. 13
  1602. 8 2
  1603. 0 286 "Intl" "sCurrency" "Win.ini"
  1604. 13
  1605. 8 3
  1606. 0 271 "Prefix" 1
  1607. 0 271 "Suffix" 1
  1608. 5 1
  1609. 6 0
  1610. 18 0
  1611. 11 00000496
  1612. 5 0
  1613. 6 2
  1614. 18 0
  1615. 11 00000233
  1616. 6 3
  1617. 8 4
  1618. 7 ""
  1619. 8 5
  1620. 10 00000439
  1621. 5 1
  1622. 6 2
  1623. 18 0
  1624. 11 00000296
  1625. 7 ""
  1626. 8 4
  1627. 6 3
  1628. 8 5
  1629. 10 00000439
  1630. 5 2
  1631. 6 2
  1632. 18 0
  1633. 11 00000374
  1634. 0 16 "{3}" " "
  1635. 13
  1636. 8 4
  1637. 7 ""
  1638. 8 5
  1639. 10 00000439
  1640. 5 3
  1641. 6 2
  1642. 18 0
  1643. 11 00000439
  1644. 7 ""
  1645. 8 4
  1646. 0 16 " " "{3}"
  1647. 13
  1648. 8 5
  1649. 0 264 "Suffix" "{5}"
  1650. 0 264 "Prefix" "{4}"
  1651. 10 00000557
  1652. 5 0
  1653. 6 0
  1654. 18 0
  1655. 11 00000557
  1656. 0 266 "Suffix"
  1657. 0 266 "Prefix"
  1658. 6 1
  1659. 15
  1660. 9
  1661. 14 CellEngine
  1662. 0 802
  1663. 13
  1664. 8 5
  1665. 0 16 "{5}" "hIstance"
  1666. 13
  1667. 8 6
  1668. 0 798
  1669. 13
  1670. 8 7
  1671. 5 1
  1672. 6 0
  1673. 18 0
  1674. 11 00000446
  1675. 0 297 "{7}LTSCE01.DLL" "CECreateInstance" "HO"
  1676. 13
  1677. 8 8
  1678. 6 8
  1679. 5 0
  1680. 18 0
  1681. 11 00000277
  1682. 0 3 "LTSCE01.DLL not found.  Copy the dll to your windows directory"
  1683. 5 -1
  1684. 15
  1685. 9
  1686. 0 284 "LTSCE01.DLL,CECREATEINSTANCE,HO" &2
  1687. 13
  1688. 8 9
  1689. 0 271 "{6}" 1
  1690. 0 271 "{5}LibId" 1
  1691. 0 264 "{5}Libid" "{8}"
  1692. 0 264 "{6}" "{2}"
  1693. 6 2
  1694. 15
  1695. 9
  1696. 10 00000912
  1697. 10 00000912
  1698. 5 2
  1699. 6 0
  1700. 18 0
  1701. 11 00000550
  1702. 0 271 "{6}" 1
  1703. 0 265 "{6}"
  1704. 13
  1705. 8 2
  1706. 6 2
  1707. 15
  1708. 9
  1709. 10 00000912
  1710. 10 00000912
  1711. 5 0
  1712. 6 0
  1713. 18 0
  1714. 11 00000799
  1715. 0 271 "{6}" 1
  1716. 0 271 "{5}LibId" 1
  1717. 0 265 "{6}"
  1718. 13
  1719. 8 2
  1720. 0 265 "{5}LibId"
  1721. 13
  1722. 8 8
  1723. 6 2
  1724. 11 00000742
  1725. 0 284 "LTSCE01.DLL,CEDESTROYINSTANCE,HH" "{2}"
  1726. 0 298 "{8}"
  1727. 0 266 "{6}"
  1728. 0 266 "{5}LibId"
  1729. 10 00000912
  1730. 10 00000912
  1731. 0 271 "{6}" 1
  1732. 0 265 "{6}"
  1733. 13
  1734. 8 2
  1735. 0 284 "LTSCE01.DLL,CECALCNOW,HHCC" "{2}" "{0}" &3
  1736. 6 3
  1737. 15
  1738. 9
  1739. 10 00000912
  1740. 6 1
  1741. 15
  1742. 9
  1743. 14 FontDlg
  1744. 5 1
  1745. 6 0
  1746. 18 0
  1747. 11 00000255
  1748. 0 284 "gdi,CreateFont,HHHHHHHHHHHHHHC" 13 0 0 0 400 0 0 0 0 0 0 0 0 "Helv"
  1749. 13
  1750. 8 4
  1751. 0 271 "FontHandle" 1
  1752. 6 4
  1753. 11 00000217
  1754. 0 264 "FontHandle" "{4}"
  1755. 6 4
  1756. 15
  1757. 9
  1758. 10 00000229
  1759. 5 0
  1760. 15
  1761. 9
  1762. 10 00000834
  1763. 10 00000834
  1764. 5 2
  1765. 6 0
  1766. 18 0
  1767. 11 00000381
  1768. 0 265 "FontHandle"
  1769. 13
  1770. 8 5
  1771. 6 5
  1772. 11 00000356
  1773. 6 5
  1774. 15
  1775. 9
  1776. 10 00000368
  1777. 5 0
  1778. 15
  1779. 9
  1780. 10 00000834
  1781. 5 3
  1782. 6 0
  1783. 18 0
  1784. 11 00000596
  1785. 0 265 "FontHandle"
  1786. 13
  1787. 8 5
  1788. 6 5
  1789. 11 00000558
  1790. 0 44 "{1}" "{2}"
  1791. 13
  1792. 8 6
  1793. 0 284 "user,SendMessage,HHHHJ" "{6}" 48 "{5}" 0
  1794. 5 1
  1795. 15
  1796. 9
  1797. 10 00000570
  1798. 5 0
  1799. 15
  1800. 9
  1801. 10 00000834
  1802. 10 00000834
  1803. 5 4
  1804. 6 0
  1805. 18 0
  1806. 11 00000785
  1807. 0 265 "FontHandle"
  1808. 13
  1809. 8 5
  1810. 6 5
  1811. 11 00000730
  1812. 0 284 "gdi,DeleteObject,HH" "{5}"
  1813. 5 1
  1814. 8 7
  1815. 10 00000740
  1816. 5 0
  1817. 8 7
  1818. 0 266 "FontHandle"
  1819. 6 7
  1820. 15
  1821. 9
  1822. 10 00000834
  1823. 0 3 "Fontdlg received an invalid parameter {0}"
  1824. 6 3
  1825. 15
  1826. 9
  1827. 14 GetMarkValue
  1828. 6 0
  1829. 7 ""
  1830. 18 0
  1831. 11 00000059
  1832. 6 0
  1833. 15
  1834. 9
  1835. 0 1289 "If Defined {0} {0} Else 0"
  1836. 13
  1837. 8 2
  1838. 6 2
  1839. 11 00000270
  1840. 0 1289 "{0}"
  1841. 13
  1842. 8 3
  1843. 5 -1
  1844. 0 13 1 "{3}" ">"
  1845. 13
  1846. 18 1
  1847. 11 00000257
  1848. 5 -1
  1849. 0 20 "{3}" 2 ">"
  1850. 13
  1851. 0 805 &3 [X]
  1852. 13
  1853. 18 0
  1854. 11 00000257
  1855. 10 00000281
  1856. 7 ""
  1857. 8 3
  1858. 6 3
  1859. 15
  1860. 9
  1861. 6 1
  1862. 15
  1863. 9
  1864. 14 Report
  1865. 0 27 8001
  1866. 13
  1867. 5 1
  1868. 4 0
  1869. 8 1
  1870. 0 27 8000
  1871. 13
  1872. 5 1
  1873. 4 0
  1874. 8 2
  1875. 0 27 8002
  1876. 13
  1877. 8 3
  1878. 0 27 8010
  1879. 13
  1880. 5 1
  1881. 4 0
  1882. 8 4
  1883. 2 101 1 "_Mortgag.sty" 1 0
  1884. 2 466 1 "Years" 4002
  1885. 0 6 "{1}"
  1886. 2 466 1 "MA" 4002
  1887. 0 6 "{2}"
  1888. 2 466 1 "IR" 4002
  1889. 0 6 "{3}"
  1890. 2 466 1 "PMT" 4002
  1891. 0 6 "{4}"
  1892. 0 6 "[40]"
  1893. 6 0
  1894. 15
  1895. 9
  1896. DIALOG Deprec
  1897. -2134376448 16 58 30 165 107 "" "AmiDialog" "Calculate Mortgage Payment" 
  1898. FONT 8 "Helv" 
  1899. 56 27 38 12 8000 1350631424 "edit" "" 0 
  1900. 56 41 38 12 8001 1350631424 "edit" "" 0 
  1901. 56 55 30 12 8002 1350631424 "edit" "" 0 
  1902. 120 5 40 14 1 1342373889 "button" "Done" 0 
  1903. 38 80 44 8 8010 1342177282 "static" "" 0 
  1904. 5 30 49 8 1004 1342177280 "static" "Mortgage amount:" 0 
  1905. 5 44 48 8 1005 1342177280 "static" "Number of years:" 0 
  1906. 5 58 40 8 1006 1342177280 "static" "Interest rate:" 0 
  1907. 5 5 111 21 1001 1342177280 "static" "" 0 
  1908. 5 69 82 33 20 1342308359 "button" "Payments" 0 
  1909. 88 57 6 10 1000 1342177280 "static" "%" 0 
  1910. 100 46 55 49 1003 1342177290 "static" "filename.bmt" 0 
  1911. 38 91 44 8 8011 1342177282 "static" "" 0 
  1912. 7 80 22 10 1007 1342177280 "static" "Monthly:" 0 
  1913. 7 91 22 10 1008 1342177280 "static" "Total:" 0 
  1914. 120 21 40 14 3 1342373888 "button" "Report" 0 
  1915. 00015577
  1916.